<template>
  <div class="task-main">
    <div class="nav-back-header">
      <div class="back-title">
        <div class="back-button">
          <img class="back-cover" src="@/assets/images/arrow-left.png" @click="onNavigationBack()"/>
        </div>
        <strong>任务中心</strong>
      </div>
    </div>
    <div class="task-card">
      <div class="search-form-wrap">
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
        <div style="margin-left: 8px;">
          <el-date-picker
            v-model="value1"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期" />
        </div>
      </div>
      <el-table
        :data="dataSource"
        stripe
        style="width: 100%">
        <el-table-column
          prop="name"
          label="文件名称">
        </el-table-column>
        <el-table-column
          prop="datetime"
          label="任务提交时间">
        </el-table-column>
        <el-table-column
          prop="status"
          label="任务状态">
        </el-table-column>
        <el-table-column
          prop="option"
          label="操作">
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      options: [{
        value: '1',
        label: '导入中'
      }, {
        value: '2',
        label: '已完成'
      }],
      value: '',
      value1: '',
      dataSource: []
    }
  },
  methods: {
    onNavigationBack(){
      this.$router.go(-1);
    }
  },
}
</script>
<style lang="scss" scoped>
.task-main {
  .nav-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 8;
    height: 46px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    .back-title {
      display: flex;
      align-items: center;
      font-size: 14px;
      line-height: 22px;
      .back-button {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-right: 12px;
        border: none;
        width: 24px;
        height: 24px;
        background: #4b5a95;
        border-radius: 12px;
        cursor: pointer;
        .back-cover {
          width: 16px;
          height: 16px;
        }
      }
    }
  }
  .task-card {
    padding: 12px;
    .search-form-wrap {
      background: #FFFFFF;
      padding: 12px;
      background-color: #fff;
      border-left: 1px solid #e9e9e9;
      border-right: 1px solid #e9e9e9;
      display: flex;
    }
  }
}
</style>
<style>
.task-main .table-header-class {
  background-color: #f7f7f7;
  font-weight: 400;
  font-size: 14px;
  padding: 9px 13px;
}

.task-main .table-header-row-class th{
  border-bottom: 0px !important;
}

.task-main .el-table::before {
  height: 0;
}

.task-main .table-row-class td{
  border-bottom: 0px !important;
}

.task-main .table-row-class {
  height: 64px;
  background: #FFFFFF;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #E9E9E9;
}

.task-main .el-table__empty-block{
    height: 250px;
    background-image: url("../../../../assets/images/ic_table_empty_1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 47px;
    padding-top: 25px;
    padding-bottom: 70px;
    border: none;
    span{
      position: relative;
      top: 60px;
      font-size: 14px;
      color: #D9D9D9;
    }
  }

</style>